package swingdemo;

import java.awt.Frame;

import javax.swing.JDialog;
import javax.swing.JFrame;

public class StandarDialog extends JDialog{

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;

	public StandarDialog(Frame owner, String title, boolean modal) {
		super(owner, title, modal);
		
		setSize(200, 100);
		
		
		
		setLocation(owner.getX()+owner.getWidth()/2-this.getWidth()/2, owner.getY()+owner.getHeight()/2-this.getHeight()/2);
		setVisible(true);
		this.setDefaultCloseOperation(JFrame.DISPOSE_ON_CLOSE);
		
	}

	
	
}
